module.exports = {
  devServer: {
    proxy: {
      "^/api": {
        target: "https://m.toutiao.com/", //接口的前缀
        ws: true, //代理websocked
        changeOrigin: true, //虚拟的站点需要更管origin
        pathRewrite: {
          "^/api": "", //重写路径
        },
      },
      "^/content":{
        target: "https://www.toutiao.com/", //接口的前缀
        ws: true, //代理websocked
        changeOrigin: true, //虚拟的站点需要更管origin
        pathRewrite: {
          "^/content": "", //重写路径
        },
      }
    },
  },
};
